def cache_deco(func):
    feibo1 ={}
    def warp(*bbs, **bbv):
        result = func(*bbs, **bbv)
        if bbs in feibo1:
            return feibo1[bbs]
        elif bbs not in feibo1:
            feibo1[bbs] = result
        return result
    return warp

@cache_deco
def feibo(n):
    print('开始执行')
    if n < 2:
        return n
    return feibo(n-2)+feibo(n-1)

print(feibo(10))

